package ca.cbc.localsrvextadmin.action;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class LSEAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3513322287475560061L;
	
	public static final String LIST = "list";
	public static final String ADD = "add"; 
	public static final String UPDATE = "update";

	protected String getParameter(String key) {
		String[] values = (String[])ActionContext.getContext().getParameters().get(key);
		if(values != null && values.length > 0) {
			return values[0];
		}
		return null;
	}
	
	protected Map<String, Object> getSession() {
		return ActionContext.getContext().getSession();
	}
}
